// let fs = require('fs'); //
import fs from 'fs'

let globalConfig = {};
let config = fs.readFileSync('./server.conf');
let configArr = config.toString().split('\r\n');
configArr.forEach(ele => {
  globalConfig[ele.split('=')[0]] = ele.split('=')[1].trim();
});

// module.exports = globalConfig; // es5
/**
 * 修改为es6
 */
export {globalConfig}
